README: object removal

Source files:

single_image_sr.m:
The program that down-samples the source image, calls the exemplar inpainting program, and performs super resolution afterwards.
Call the program: single_image_sr. Before that you should specify in the code the path and filenames of the source image (RGB channel image) and the mask image (grayscale channel) which indicates the region that needs to be inpainted.

project_inpaint_nlm.m (you do not need to call this program, because it is called within the program above):
Examplar inpointing program using our NLM method, without downsampling and super-resolution. This function calls a precompiled C program bestexemplarhelper.mexmaci64 for sake of efficiency.
Call the program:
[inpaintedImg, confidence_term, similarity_term] = project_inpaint_nlm(srcFile_with_3_channels, maskFile_with_3_channels, maskColor)
For example:
[i1,c,d] = project_inpaint_nlm('balloon_d.jpg','balloon_mask_3d_d.jpg',[255,255,255]);
Here balloon_d.jpg and balloon_mask_3d_d.jpg are RGB image files. [255,255,255] indicates that in the region to be unpainted are marked with white pixels in balloon_mask_3d_d.jpg.
Examplar inpointing program using original method was supported by http://scarlet.stanford.edu/teach/index.php/Object_Removal.

Note that the execution time is about three hours for a 1600x1600 image.

Images:
balloon.jpg, parachute.jpg — source RGB images
balloon_mask_1d.jpg, parachute_mask_1d.jpg - grayscale masks
balloon_mask_1d.jpg, parachute_mask_1d.jpg - RGB masks

